package com.onpositive.units;

import java.util.Collection;
import java.util.Collections;

import org.w3c.dom.Element;

public abstract class ParsedTerm extends ParsedValue {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2092074594586297223L;

	public ParsedTerm(Element element) {
		super(element);
	}
	
	public ParsedTerm(String comment) {
		super(comment);
	}
	
	@Override
	public <T> Collection<T> getValues(Class<T> vs) {
		if (vs.isInstance(this)){
			return Collections.singleton(vs.cast(this));
		}
		return Collections.emptySet();
	}

}
